ADP\BaseVersion\Includes\Rule\PriceCalculator B

Total Complexity 96
Dependencies 15
Dependents 4
Total lines 515
Lines of code 320
Logical lines of code 194
Comment lines 104
Methods 17
Properties 3

Methods 17

Method Rating Maintainability Complexity Lines of code
calculatePriceForSet()
C
32 27 98
applyItemDiscount()
B
36 21 80
calculateAdjustmentsLeft()
A
45 15 40
calculateSinglePrice()
S
54 6 21
calculatePrice()
S
57 5 17
checkAdjustmentTotal()
S
70 4 6
checkDiscount()
S
66 4 8
makePriceFixed()
S
69 2 7
applyToItem()
S
64 2 10
applyToAllItemsInCollection()
S
74 2 5
makeDiscountPercentage()
S
69 2 6
makeFree()
S
82 1 3
__construct()
S
74 1 5
makeOverpriceAmount()
S
78 1 3
makeDiscountAmount()
S
78 1 3
makeOverpricePercentage()
S
77 1 3
checkOverprice()
S
73 1 5